<template>
    <el-select>
        <el-option value="" v-if="empty"></el-option>
        <el-option 
        v-for="item in options" 
        :key="item.value" 
        :label="item.label" 
        :value="item.value" />
    </el-select>
</template>
<script lang="ts" setup>
import { defineProps } from "vue";

// 是否包含空选项
defineProps({
  empty: {
    type: Boolean,
    default: () => true,
  },
});

// 选项
const options = [
    { label: "OSS视频", value: 2 },
    { label: "外链视频", value: 3 },
    { label: "外链地址", value: 4 },
];
</script>